package com.ly.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.system.entity.TbDepartment;
import com.ly.system.entity.TbUser;
import com.ly.system.vo.TbDepartmentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangzhu
 * @since 2020-10-31
 */
public interface TbDepartmentService extends IService<TbDepartment> {
    List<TbDepartmentVO> findDeptAndCount();
    IPage<TbDepartment> findDeptAndCount22(Page<TbUser> page, @Param(Constants.WRAPPER) QueryWrapper<TbDepartment> queryWrapper);
}
